﻿<phone:PhoneApplicationPage
    x:Class="Game77SharedLib.MokaPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<Style x:Key="ButtonStyleClose" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill)" Storyboard.TargetName="ellipse">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<SolidColorBrush Color="#FF878787"/>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Ellipse x:Name="ellipse" Width="75" VerticalAlignment="Top" StrokeThickness="5" Stroke="White" Height="76" HorizontalAlignment="Left">
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFF3E3E" Offset="0.017"/>
										<GradientStop Color="#FFB40000" Offset="1"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<Path Width="36.341" VerticalAlignment="Center" UseLayoutRounding="False" StrokeThickness="10" Stroke="White" Stretch="Fill" Height="36.34" HorizontalAlignment="Center" Fill="#FFAE0101" Data="M22.3333,20.6667 L53.6738,52.0071"/>
							<Path Width="36.341" VerticalAlignment="Center" UseLayoutRounding="False" StrokeThickness="10" Stroke="White" Stretch="Fill" RenderTransformOrigin="0.5,0.5" Margin="19.33,19.83,19.329,19.83" Height="36.34" HorizontalAlignment="Center" Fill="#FFAE0101" Data="M22.3333,20.6667 L53.6738,52.0071">
								<Path.RenderTransform>
									<CompositeTransform Rotation="90"/>
								</Path.RenderTransform>
							</Path>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Storyboard x:Name="StoryboardProgress">
			<DoubleAnimation Duration="0:0:4" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Viewbox>
		<Grid x:Name="LayoutRoot" Height="800" Width="480">
			<Grid.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF3A3A3A" Offset="0"/>
					<GradientStop Color="#FF1F1F1F" Offset="1"/>
				</LinearGradientBrush>
			</Grid.Background>
			<Border HorizontalAlignment="Center" VerticalAlignment="Center" BorderBrush="White" BorderThickness="10">
                <Image x:Name="imgAd" Stretch="Fill" Height="700" Width="400" Tap="imgAd_Tap" Source="/Game77SharedLib;component/fullAd_1.jpg"/>

			</Border>
			<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="马上点击图片了解详情" VerticalAlignment="Bottom" Margin="0,0,0,4"/>
			<Button x:Name="btnClose" Content="Button" Margin="395,10,10,714" Style="{StaticResource ButtonStyleClose}" Click="btnClose_Click"/>
			<Rectangle x:Name="rectangle" Fill="{StaticResource PhoneAccentBrush}" HorizontalAlignment="Left" Height="5" VerticalAlignment="Top" Width="480" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
				<Rectangle.RenderTransform>
					<CompositeTransform/>
				</Rectangle.RenderTransform>
			</Rectangle>

			<!--TitlePanel 包含应用程序的名称和页标题-->

			<!--ContentPanel - 在此处放置其他内容-->
		</Grid>

	</Viewbox>

</phone:PhoneApplicationPage>